package job.gfp.ranks_v2;

import java.util.ArrayList;
import java.util.List;

public class RanksV2_Util {

    public static final String DELIM = "#";

    public static List<RanksV2_Algorithm> loadAlgorithms(String algorithms) {
        List<RanksV2_Algorithm> ret = new ArrayList<RanksV2_Algorithm>();
        for (String algorithm : algorithms.split(",")) {
            ret.add(RanksV2_AlgorithmLibrary.valueOf(algorithm.toUpperCase())
                    .getAlgorithm());
        }
        return ret;
    }

}
